package com.hospital.wx.dao;

import com.hospital.wx.pojo.Comments;
import org.apache.ibatis.annotations.Mapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Mapper
public interface CommentsDao {

    long selectCountCommentsByPostId(Integer postId);

    List<HashMap<String, Object>> getCommentsByPostId(Map param);

    int addComment(Comments comments);

    int deleteComment(Integer id);
}
